# -*- coding:utf-8 -*-
"""
Created on 02.02.2010

@author: r4smus
"""


students = ['hans', 'fritz', 'ludwig', 'christian', 'denise']


while True:
    input = raw_input("If you want to delete one student from the list, please type <delete name>, \n \
    if you want to add a student to list, type <add name>, if you want to exit type <exit>: ")
    input = input.lower()
    inputlist = input.split()
    if inputlist[0] == "delete":
        students.remove(inputlist[1])
    elif inputlist[0] == "add":
        students.append(inputlist[1])
    elif inputlist[0] == "exit":
        break
    else:
        print "wrong input..."
        break
    print students